INSTALL(DIRECTORY
    ${PROJECT_SOURCE_DIR}/include/api/cn/imp
    ${PROJECT_SOURCE_DIR}/include/api/cn/sysutils
    DESTINATION include_cn
)

INSTALL(DIRECTORY
    ${PROJECT_SOURCE_DIR}/include/api/en/imp
    ${PROJECT_SOURCE_DIR}/include/api/en/sysutils
    DESTINATION include_en
)

ADD_CUSTOM_TARGET(INC ALL DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/include_link)

ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/include_link
    COMMAND ln -sf include_cn include_link
    WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include_link
    DESTINATION ${CMAKE_INSTALL_PREFIX}
    RENAME include
)
